package com.joinlabs.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.joinlabs.entity.User;
import com.joinlabs.mapper.UserMapper;
import com.joinlabs.service.IUserServiceZ;
@Service("userserviceZ")
public class UserServiceImplZ implements IUserServiceZ{

	@Resource
	private UserMapper userMapper;
//	通过手机号(账号)查找用户
	@Override	
	public User findUserAccount(String useraccount) {
		// TODO Auto-generated method stub
		
		return userMapper.selectByUserAccount(useraccount);
	}

	@Override
	public int insert(User user) {
		// TODO Auto-generated method stub
		return userMapper.regiestUser(user);
		
	}

	@Override
	public int update(String account, String pwd) {
		// TODO Auto-generated method stub
		return userMapper.updatepwd(account, pwd);
	}

}
